package com.zhongc.advance.dao;

import com.zhongc.advance.info.UserSecurity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserSecurityDao {
    /**
     * 添加用户安全密保
     * @param orders
     * @return
     */
    int addSecurities(@Param("orders")List<UserSecurity> orders);

    /**
     * 添加用户安全密保
     * @param orders
     * @return
     */
    int updateSecurity(List<UserSecurity> orders);

    /**
     * 根据用户id查看用户安全密保
     * @param userId
     * @return
     */
    List<UserSecurity> selectSecuritiesByUserId(@Param("userId")String userId);
}